package com.whmall.service.crm.module.company.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.whmall.component.entity.ILongIdModel;
import com.whmall.component.entity.IOperatorModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 公司配置表
 * </p>
 *
 * @author yjh
 * @since 2023-03-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("company_config")
public class CompanyConfigDO implements ILongIdModel<CompanyConfigDO>, IOperatorModel<CompanyConfigDO> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 公司ID
     */
    private Long companyId;

    /**
     * 键
     */

    @TableField(value = "`key`")
    private String key;

    /**
     * 值
     */

    @TableField(value = "`value`")
    private String value;

    /**
     * 创建人id
     */
    private Long createId;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新人id
     */
    private Long updateId;
    /**
     * 更新时间
     */
    private Date updateTime;
}
